<?php

class Users_Form_Users_LoginForm extends Zend_Form
{
    /**
     * Form initialization
     *
     * @return self
     */
    public function init()
    {
        $this->setName('userLoginForm');

        $username = new Zend_Form_Element_Text('email');
        $username->setLabel('User email');

        $password = new Zend_Form_Element_Password('password');
        $password->setLabel('Password');

        $rememberMe = new Zend_Form_Element_Checkbox('rememberMe');
        $rememberMe->setLabel('Remember Me');

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Login');

        $this->addElements(array($username, $password, $rememberMe, $submit));

        return $this;
    }
}